package day5;

import java.util.Scanner;

public class zuoye17 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个字符串");
		String str = sc.nextLine();
		char[] Array = str.toCharArray();
		int nummberCount = 0;
		int blankerCount = 0;
		int letterCount = 0;
		for (int i = 0; i < Array.length; i++) {
			char a = Array[i];
			if (a == ' ') {
				blankerCount++;
			}

			if ('z' >= a && a >= 'a' || 'A' <= a && a <= 'Z') {
				letterCount++;

				if (a >= '0' && a <= '9') {
					nummberCount++;
				}
				System.out.println(blankerCount);
			}

		}
	}
}
